package com.stud.common.core.domain;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

/**
 * Tree基类
 *
 * @author Stud
 */
@Schema(description = "Tree")
@Getter
@Setter
public class TreeEntity extends BaseEntity {

    @Schema(description = "父菜单名称")
    private String parentName;

    @Schema(description = "父菜单ID")
    private Long parentId;

    @Schema(description = "显示顺序")
    private Integer orderNum;

    @Schema(description = "祖级列表")
    private String ancestors;

    @Schema(description = "子部门")
    private List<?> children = new ArrayList<>();
}
